package com.smyh.common;

/**
 * Created by Administrator on 2016/7/15.
 * 通讯状态服务状态查看类
 */
public class CommState {
    /**
     * 设备通讯是否手动打开（手动操作）
     */
    public static boolean deivceCommOpen = false;
    /**
     * 设备通讯是否正常（状态）
     */
    public static boolean deivceCommSessionRun = false;

    /**
     * web服务是否打开（手动操作）
     */
    public static boolean webServerOpen =false;

    /**
     * web服务是否运行正常(状态)
     */
    public static boolean isWebServerRun = false;

    public static boolean isDeivceCommOpen() {

        return deivceCommOpen;
    }

    public static void setDeivceCommOpen(boolean deivceCommOpen) {
        CommState.deivceCommOpen = deivceCommOpen;
    }

    public static boolean isDeivceCommSessionRun() {
        return deivceCommSessionRun;
    }

    public static void setDeivceCommSessionRun(boolean deivceCommSessionRun) {
        CommState.deivceCommSessionRun = deivceCommSessionRun;
    }

    public static boolean isWebServerRun() {
        return isWebServerRun;
    }

    public static void setIsWebServerRun(boolean isWebServerRun) {
        CommState.isWebServerRun = isWebServerRun;
    }

    public static boolean isWebServerOpen() {
        return webServerOpen;
    }

    public static void setWebServerOpen(boolean webServerOpen) {
        CommState.webServerOpen = webServerOpen;
    }

}
